//
//  CRSession.h
//  TestPrj
//
//  Created by 朱铅峰 on 2020/8/13.
//  Copyright © 2020 Xing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CRHeader.h"

NS_ASSUME_NONNULL_BEGIN

@interface CRSession : NSObject<NSCopying>

/// 会话ID,如果当前session为team,则sessionId为teamId,如果是P2P则为对方帐号
@property(nonatomic,copy,readonly) NSString *sessionId;

/// 会话类型
@property(nonatomic,assign,readonly) CRSessionType sessionType;

- (instancetype)initWithSessionId:(NSString *)sessionID type:(CRSessionType)sessionType;

@end

NS_ASSUME_NONNULL_END
